<?php
session_start();

require_once '../inc/Settings.php';
require_once '../inc/MessageHandler.php';
require_once 'PageHandler.php';

$pageHandler = new PageHandler();

require_once "pages/{$pageHandler->GetPage()}.php";


?>
<!doctype html>
<html>
<head>
<title><?php echo Settings::WebsiteName() . " &ndash; Admin" ?></title>
<link rel="stylesheet" type="text/css" href="css/admin.css"/>
</head>
<body>
<?php
$pageControllerName = $pageHandler->GetPage();
$pageController = new $pageControllerName();
echo $pageController->DoControll();

?>
</body>
</html>
